//
//  Waypoint.h
//  Henry
//
//  Created by Ron Olson on 3/10/10.
//  Copyright 2010 Keep Bertha Surfin. All rights reserved.
//

#import <Cocoa/Cocoa.h>


#define PI 3.14159265

@interface Waypoint : NSObject {
	NSString *wptName;
	NSString *wptDescription;
	double latitude;
	double longitude;
}

-(id)initWithName:(NSString*)theName description:(NSString*)theDescription latitude:(double)lat longitude:(double)lon;
-(NSString*)getFormattedWPForGoogleMaps;
-(double)distanceFrom:(Waypoint*)otherWaypoint;
-(int)isCloserTo:(Waypoint*)leftSideWaypoint orTo:(Waypoint*)rightSideWaypoint;
-(Waypoint*)isClosestTo:(NSArray*)waypoints;

@property(readonly) NSString *wptName;
@property(readonly) NSString *wptDescription;
@property(readonly) double latitude;
@property(readonly) double longitude;

@end
